/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.venta.modelo;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ctrosch
 * Tabla: VTTVND
 *
 */
@Entity
@Table(name="VTTVND")
public class Vendedor implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="VTTVND_VNDDOR")
    private String vnddor;

    @Column(name="VTTVND_DESCRP", length=60)
    private String descrp;

    @Column(name="VTTVND_NROTEL", length=30)
    private String nrotel;

    @Column(name="VTTVND_CAMAIL", length=120)
    private String camail;

    public String getCamail() {
        return camail;
    }

    public void setCamail(String camail) {
        this.camail = camail;
    }

    public String getNrotel() {
        return nrotel;
    }

    public void setNrotel(String nrotel) {
        this.nrotel = nrotel;
    }

    public String getVnddor() {
        return vnddor;
    }

    public void setVnddor(String vnddor) {
        this.vnddor = vnddor;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }   

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Vendedor other = (Vendedor) obj;
        if ((this.vnddor == null) ? (other.vnddor != null) : !this.vnddor.equals(other.vnddor)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 59 * hash + (this.vnddor != null ? this.vnddor.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "tv.venta.modelo.Vendedor[id=" + vnddor + "]";
    }

}
